<?php

namespace framework;
//*****************************************************************//
// Web Space Settings - You should modify these to match your setup
// 
// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'root');
define('DB_PASSWORD', '');
define('DB_DATABASE', 'plurious_users');
define('DB_PREFIX', '');
// CONTEXT
define('DEFAULT_CONTEXT', 'web');
define('DEFAULT_ROUTE', 'home');
// MODULES
define('DEFAULT_ERROR_DIR', 'error');
define('DEFAULT_CONTROLLER_DIR', '');
define('DEFAULT_CONTROLLER', 'home');
// TEMPLATE EXTENSION
define('TEMPLATE_EXTENSION', '.tpl');
// SECURITY
define('SECURITY_KEY', '34ae6d05-cd0d-45d3-8dec-b9c37ccf0b6a');
//*****************************************************************//


//*****************************************************************//
// Server Paths and URLs - only modify these if you've modified the directory
// structure of the framework by moving things around.
// 
// Don't modify these if you don't know what you are doing!!
// 
// ROOT URL
$protocol = htmlspecialchars($_SERVER['SERVER_PROTOCOL']);
define('PROTOCOL', substr($protocol, 0, strrpos($protocol, '/')) . '://');
define('ROOT_URL', PROTOCOL . htmlspecialchars($_SERVER['SERVER_NAME']) . htmlspecialchars(dirname($_SERVER['PHP_SELF'])) . '/');
define('SEO', true);
// DIR
define('ROOT_DIR', str_replace('\\', '/', htmlspecialchars(rtrim($_SERVER['DOCUMENT_ROOT'], '/'). dirname($_SERVER['PHP_SELF']))) . '/' );
define('SYSTEM_DIR', dirname(dirname(__FILE__)) . '/' );
define('FRAMEWORK_DIR', SYSTEM_DIR . 'framework/');
define('APPS_DIR', ROOT_DIR . 'apps/');
define('LANGUAGE_DIR', FRAMEWORK_DIR . 'language/');
define('DATA_DIR', FRAMEWORK_DIR . 'data/');
define('SESSION_DIR', DATA_DIR . 'sessions');
define('CAPTCHA_DIR', DATA_DIR . 'captcha/');
define('DOWNLOAD_DIR', DATA_DIR . 'downloads/');
define('CACHE_DIR', DATA_DIR . 'cache/');
define('DB_DIR', DATA_DIR . 'database/');
?>